Skip to content

FCM V1 API Migration initial commit.#8087

Merged
eldhosembabu merged 39 commits into
mainfrom
emb/fcm-v1-reg
Jun 9, 2026
Merged

FCM V1 API Migration initial commit.#8087
eldhosembabu merged 39 commits into
mainfrom
emb/fcm-v1-reg

Conversation

@eldhosembabu

@eldhosembabu eldhosembabu commented May 4, 2026

Copy link
Copy Markdown
Contributor

Add FCM V1 registration API support and deprecate legacy registration api(s) like getToken, onNewToken etc.

  • Added v1 registration support
  • Deprecated legacy registration apis
  • Deprecated multi project support for FCM
  • Added/updated tests for the same.

@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

1 similar comment
@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

1 similar comment
@google-oss-bot

Copy link
Copy Markdown
Collaborator

The public api surface has changed for the subproject firebase-messaging:
error: Added method com.google.firebase.messaging.FirebaseMessaging.register() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessaging.unregister() [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onRegistered(String) [AddedMethod]
error: Added method com.google.firebase.messaging.FirebaseMessagingService.onUnregistered(String) [AddedMethod]
error: Added class com.google.firebase.messaging.GmsRegistrationClient [AddedClass]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@eldhosembabu eldhosembabu requested a review from Doris-Ge May 19, 2026 20:08
@eldhosembabu eldhosembabu requested a review from gsakakihara May 20, 2026 17:59
Comment thread firebase-messaging/CHANGELOG.md Outdated
@eldhosembabu eldhosembabu requested a review from gsakakihara May 27, 2026 16:43

@Doris-Ge Doris-Ge left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: It would be nice if we could add a unit test case to verify that a call to subscibeToTopic would automatically create an FCM registration when there isn't one. It would also be helpful to prevent unexpected behavior changes in the future.

@eldhosembabu

Copy link
Copy Markdown
Contributor Author

nit: It would be nice if we could add a unit test case to verify that a call to subscibeToTopic would automatically create an FCM registration when there isn't one. It would also be helpful to prevent unexpected behavior changes in the future.

Done

@eldhosembabu eldhosembabu requested a review from gsakakihara June 5, 2026 22:24
gsakakihara
gsakakihara previously approved these changes Jun 5, 2026
gsakakihara
gsakakihara previously approved these changes Jun 8, 2026
@eldhosembabu eldhosembabu requested a review from rlazo June 8, 2026 20:42
Comment thread firebase-messaging/CHANGELOG.md Outdated
Co-authored-by: Rodrigo Lazo <rlazo@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Firebase AI Mock Responses Check ⚠️

A newer major version of the mock responses for Firebase AI unit tests is available. update_responses.sh should be updated to clone the latest version of the responses: v17.0

@eldhosembabu eldhosembabu requested review from gsakakihara and rlazo June 9, 2026 17:13
@eldhosembabu eldhosembabu merged commit 3f01b02 into main Jun 9, 2026
179 of 184 checks passed
@eldhosembabu eldhosembabu deleted the emb/fcm-v1-reg branch June 9, 2026 19:55
@github-actions github-actions Bot mentioned this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants